# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-craft
pkgver=0_git20191221
pkgrel=0
_commit="d1b832825b9cc500328efdc0f0a78517f1c5b479"
pkgdesc="a simple Minecraft clone written in C using modern OpenGL"
url="https://github.com/libretro/Craft"
arch="all"
license="MIT"
makedepends="mesa-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/Craft/archive/$_commit.tar.gz"
builddir="$srcdir/Craft-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 craft_libretro.so "$pkgdir"/usr/lib/libretro/craft_libretro.so
}

sha512sums="d0df03e8827c87877ca21e1b617f99e9158cd85b17e422b67ebad5a4dbb56a4bc8ac7fc3c4f8324dae1289a746955adfd3f8fdef3ccf1747e9db6acfcd441218  libretro-craft-d1b832825b9cc500328efdc0f0a78517f1c5b479.tar.gz"
